import { CommontListResp } from '@/api/types'
import request, { ApiResponse } from '@/utils/service/request'
import {
  ImageItem,
  OptionStatusReq,
  QueryListReq,
} from './model/ttempAuditModel'

export enum TtempAuditApi {
  /** 查询列表 */
  QUERY_LIST = '/data-access/tencent/search',
  /** 提交审核结果 */
  PUSH_AUDIT_RES = '/data-access/tencent/edit',
}

export function fetchAuditList(body: QueryListReq) {
  return request.post<ApiResponse<CommontListResp<ImageItem>>>(
    TtempAuditApi.QUERY_LIST,
    body
  )
}

export function commitAuditRes(body: OptionStatusReq) {
  return request.post<ApiResponse<null>>(TtempAuditApi.PUSH_AUDIT_RES, body)
}
